<template>
    <div>
        <input type="file" class="file" @change="changeFile">
    </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue';

/**
 * 读取文件
 */
const changeFile = (e: any) => {
    const filehas = '';
    const fileName = '';
    const file = e.target.files[0]
    console.log(file);
}

/**
 * 切片
 */
</script>
<style lang="scss" scoped></style>